package com.gxa.clientproduct.service.impl;


import com.gxa.clientproduct.mapper.LableMapper;
import com.gxa.clientproduct.pojo.Lable;
import com.gxa.clientproduct.service.LableService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author: fenglin
 * @Date:2020/11/12 14:39
 * @Version 1.0
 */

@Service("lableService")
public class LableServiceImpl implements LableService {
    @Resource
    LableMapper lableMapper;

    @Override
    public List<Lable> lableFindAll() {
        return lableMapper.selectAll();
    }

    @Override
    public int LabeAdd(Lable lable) {
        return lableMapper.insertSelective(lable);
    }

    @Override
    public int updaeState(Lable lable) {
        return lableMapper.updateByPrimaryKeySelective(lable);
    }
}
